home *** CD-ROM | disk | FTP | other *** search
- On 16-Okt-97, Declan_Gorman@modusmedia.com smashed the keyboard with:
- >
- > I will try to explain this the best I can so bear with me
- >
- > I am trying to copy a memory block of 256 bytes from one address to
- > another using the following line of code which is causing my system to
- > crash.
- >
- > Copy Start(SBNK)+Val(SVCE$(SMZ)),Start(SBNK)+Val(SVCE$(SMZ))+256 to
- > Start(20)
- >
- > where SBNK is either 10 or 11 and SMZ ranges from 1 to 128
- >
- > At one stage when I ran the program where SBNK is 10 and SMZ is 1 I
- > got the following values
- >
- > Copy 1225400,1225656 to Start(20)
- >
- > The same line of code in direct mode does not crash and works fine but
- > when run through my program it crashes.
- >
- > I went stepped through everything to verify that I was getting valid
- > values for both SBNK and SMZ and every time they were valid.
- >
-
- Uhh, this is a bit of a long-shot, but try to calculate the val's outside
- of the command.. (something like: wa=val(svce$(n)) and then use the variable
- in the copy command, don't know why it happens, but by putting a break down
- after the 'val' you can at least see what part goes wrong (I'm suspecting
- the VAL very much as the Copy command never gives me any problems at all).
-
- Here's a few check-points for your help, but you proberly know them..
-
- .. 'Copy' MUST use EVEN adresses, be very sure about this !!!
- .. 'VAL' sometimes screws up when encountering strange char's, so make sure
- that the string starts right out with a valid number. Also be sure that
- the number is terminated by either a 'normal' char (A-Z,a-z) or space or
- the end of the string..
- .. Have you tried to enter the numbers directly in the copy command ??
-
- NB: The EVEN adresses on Copy should only apply to 68000->68020 CPU's,
- newer ones SHOULD be able to cope with uneven (Havn't tried it)..
-
- --
- Happy greetings, Yours..
- __________________________________________________________________________
- /_ __/ __ / __ /\ ___\ __ \__ _\ aka. JENS VANG PETERSEN
- / / / /_/ / ____/ \ \___\ __ \ \ \ Nyvej 8, DK-4450 Jyderup, Denmark
- /_/ /_____/_/ \_____\_\ \_\ \_\ top_cat@post8.tele.dk
- --------------------------------------------------------------------------
- Never forget the 'Queen Of Hearts', Diana, Princess Of Wales, 1961->1997
- --------------------------------------------------------------------------
-
-
-